# -*- coding:utf-8 -*-
#Author LJ 
#Mail:admin@attacker.club
#Site:blog.attacker.club
#description

family = ['Mon','Dad','bady']
LuckyNumber = [1,7,9,0.1,0.2,0.3]

print  ("切片简写打印整个列表",family[:])
print  ("第3个前结束",family[:2])
print  ("第3个开始切片",LuckyNumber[2:])


#print family[0:2]
print ("打印列表切片",LuckyNumber[2:4],type(LuckyNumber[2:4]))
print ("打印列表中的元素",LuckyNumber[3],type(LuckyNumber[3]))


"""
1.
LuckyNumber[2:4] 列表分片，会等到原来列表的分片，即原列表的部分副本（copy）范围
2.
简写 
"""
